import React from 'react'
import { useNavigate } from 'react-router-dom'
import imgSrc from '../../assets/404/404.png'
import './404.scss'

const NotFound: React.FC<object> = () => {
  const navigate = useNavigate()
  const backHome = () => {
    navigate('/home')
  }
  return (
    <div className='not-fond ' >
      <img src={imgSrc} />
      <div className='back-btn' onClick={backHome}>返回首页</div>
    </div>
  )
}
export default NotFound